<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;

        }

        li {
            list-style-type: none;
        }

        a {
            text-decoration: none;
        }

        .carousel {
            width: 500px;
            height: 300px;
            margin: 0 auto;
            background-color: #666666;

            /* 相对定位*/
            position: relative;
            overflow: hidden;
        }

        .carousel-imgs {
            width: 9999px;
            position: absolute;
            left: 0;
            top: 0;
        }

        .carousel-imgs li {
            float: left;
        }


        .carousel-imgs img {
            width: 500px;
            height: 100%;
        }

        .prev, .next {
            width: 32px;
            height: 32px;
            background-color: white;
            position: absolute;
            top: 50%;
            margin-top: -16px;
            border-radius: 50%;
        }

        .prev {
            left: 20px;
        }

        .next {
            right: 20px;
        }


        /*    计数器*/
        .count {
            width: 100%;
            height: 10px;
            position: absolute;
            bottom: 25px;

        }

        .count ul {
            width: 120px;
            height: 10px;
            margin: 0 auto;
            /*background-color: #FF0000;*/
        }

        .count ul li {
            width: 10px;
            height: 10px;
            background-color: white;
            opacity: 0.5;
            float: left;
            margin-right: 10px;
            border-radius: 50%;

            /*鼠标变成手形*/
            cursor: pointer;
        }

        .count .active {
            background-color: purple;
            opacity: 1;
        }

    </style>
</head>
<body>
<div class="carousel">
    <!--轮播组图-->
    <ul class="carousel-imgs">
        <li><a href="#"><img src="../pic/01.jpg" alt="banner"></a></li>
        <li><a href="#"><img src="../pic/02.jpg" alt="banner"></a></li>
        <li><a href="#"><img src="../pic/03.jpg" alt="banner"></a></li>
        <li><a href="#"><img src="../pic/04.jpg" alt="banner"></a></li>
    </ul>

    <!--控制器-->
    <div class="prev"></div>
    <div class="next"></div>

    <!--计数器-->
    <div class="count">
        <ul>
            <li class="active"></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</div>
</body>
</html>